package com.example.bmysurprisemeal.repository;

import com.example.bmysurprisemeal.controller.JpaRepository;
import com.example.bmysurprisemeal.model.Restaurant;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface RestaurantRepository extends JpaRepository<Restaurant, Long> {
    Restaurant findByName(String name);

    Restaurant save(Restaurant restaurant);
}